Audio source system and method

ABSTRACT

A method includes receiving hardware update information during a first time period. The method further includes using the hardware update information to synchronize a first audio data stream with a device driver. The method further includes receiving hardware emulation information during a second time period and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.

CLAIM OF PRIORITY

This application is a divisional application of, and claims priority to and the benefit of, U.S. patent application Ser. No. 13/107,126, filed May 13, 2011, which is a divisional application of, and claims priority to and the benefit of, U.S. patent application Ser. No. 11/335,804, filed Jan. 19, 2006, now U.S. Pat. No. 7,966,085, the contents of each of which are expressly incorporated herein by reference in their entirety.

FIELD OF THE DISCLOSURE

The present disclosure relates to systems and methods for providing audio content to an audio hardware device.

BACKGROUND

Many computer applications have audio features. The audio features may include indicator sounds to inform a user of certain system events. Other audio features are more complex, such as playback of music files. In order to transmit an audio feature to a user, a computer application typically interacts with a device driver that controls audio hardware, such as a sound card. The audio hardware may provide the audio feature via an audio output device, such as a speaker.

In many computer environments, multiple computer applications can operate at the same time, and each application may include audio features to be provided to the audio hardware. Further, some audio features may have a higher priority than other features. For example, it may be important for a commercial audio computer application that no other audio features are provided to the audio hardware while the commercial audio computer application is operating. Such “audio interruptions” can lead to undesirable performance of the commercial audio computer application.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a particular embodiment of a system for providing an audio signal to an audio hardware device;

FIG. 2 is a timing diagram of a particular embodiment of a series of signals associated with the system of FIG. 1; and

FIG. 3 is a flow chart of a method of providing a digital audio signal to an audio hardware device.

The use of the same reference symbols in different drawings indicates similar or identical items.

DETAILED DESCRIPTION

In a particular embodiment, a method includes receiving hardware update information during a first time period and using the hardware update information to synchronize the first audio data stream with the device driver. The method further includes receiving using hardware emulation information during a second time period and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.

In a particular embodiment, a computer readable storage device stores instructions that when executed by a processor cause the processor to perform operations. The operations include receiving hardware update information during a first time period and using the hardware update information to synchronize the first audio data stream with the device driver. The operations further include receiving hardware emulation information during a second time period and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.

In a particular embodiment, an apparatus includes a processor and a memory storing instructions executable by the processor to perform operations. The operations include receiving hardware update information during a first time period and using the hardware update information to synchronize the first audio data stream with the device driver. The operations further include receiving hardware emulation information during a second time period and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.

Referring to FIG. 1, a system 100 for providing an audio signal to an audio hardware device is illustrated. The system 100 includes a low latency application 102 and a Windows driver model (WDM) application 104. In a particular embodiment, the low latency application is an Audio Stream Input/Output (ASIO) application. The system 100 further includes a device driver 106 and a hardware device 108. The device driver 106 includes a detection module 110, an emulation module 112, a selection module 114, and a selector 123.

The hardware device 108 receives an audio output 120 from the device driver 106. The device driver 106 receives a digital audio data stream 116 from the low latency application 102. The device driver 106 also receives a digital audio data stream 118 from the WDM application 104. The selector 123 receives hardware update information 124 from the hardware device 108 and hardware emulation information 122 from the device driver 106, and selectively provides either the hardware update information 124 or the hardware emulation information 122 to the WDM application 104.

During operation, the WDM application 104 and the low latency application 102 may provide digital audio data streams to the device driver 106. The WDM application 104 may be any application including audio content that operates under a windows-based operating system. For example, the WDM application may be a software application that plays music, a game application, or other application that includes audio content. In a particular embodiment, the low latency application 102 is a professional audio application. In another particular embodiment, the WDM application 104 is a standard-latency application.

The device driver 106 selectively provides one of the received digital audio data streams at the audio output 120 to the hardware device 108. In addition, the device driver 106 selectively provides the hardware emulation information 122 or the hardware update information 124 to the WDM application 104 as appropriate to improve system stability.

In a first mode, the device driver 106 receives a digital audio data stream 118 from the WDM application 104. Further, in the first mode of operation, the low latency application 102 is not providing the digital audio data stream 116 to the device driver 106. In this first mode, the selection module 114 provides the digital audio data stream 118 as the audio output 120 to the hardware device 108.

Further, in the first mode the selector 123 provides hardware update information 124 received from the hardware device 108 to the WDM application 104. The hardware update information 124 can inform the WDM application 104 what portion of the digital audio data stream 118 has been output by the hardware device 108. This allows the WDM application 104 to properly synchronize the digital audio data stream 118 with the hardware device 108. For example, the WDM application 104 may adjust the transmission speed of the digital audio data stream 118 to synchronize with the hardware device 108. Failure to properly synchronize the digital audio data stream 118 and the hardware device 108 can lead to system instability or poor system performance. For example, if the digital audio data stream 118 is provided to the hardware device 108 more quickly than the device 108 can process the stream, the audio output of the device may be incorrect or include errors. If the digital audio data stream 118 is not provided to the hardware device 108 at a fast enough rate, the audio output may include undesirable pauses, noise, or periods of silence. Further, the WDM application 104 may be programmed to expect hardware update information, and if the application does not receive the expected update information, or receives incorrect information, the WDM application 104 may cease to work properly, or cease operation altogether. This may be particularly serious if the WDM application 104 is a system application. Improper operation of a system application can result in instability or errors of the entire operating system.

In order to synchronize the digital audio data stream 118 and the hardware device 108, the hardware update information 124 may include audio stream location information. For example, the hardware update information 124 may include pointer information indicating which portion or data location of the digital audio data stream 118 has been output by the hardware device 108. In a particular embodiment, the hardware update information 124 may include direct memory access (DMA) pointer information. The pointer information may change over time to indicate the latest portion of the digital audio data stream 118 that has been output by the hardware device 108. The rate at which the pointer information changes may depend on a variety of factors, including the sample rate and bit depth of the digital audio data stream 118.

When the low latency application 102 provides the digital audio data stream 116 to the device driver 106, the system 100 may enter a second mode of operation. In this second mode of operation the detection module 110 detects the presence of the digital audio data stream 116 and applies a control signal to the selection module 114 and the selector 123. In response to this control signal, the selection module 114 applies the digital audio data stream 116 at the audio output 120. The hardware device 108 thereby receives the digital audio data stream 116 instead of the digital audio data stream 118.

In the second mode of operation, the WDM application 104 continues to provide the digital audio data stream 118 to the device driver 106. As explained above, it may be important for system stability for the WDM application to synchronize the digital audio data stream 118 with the hardware device 108. Accordingly, the detection module 110 applies a control signal to the emulation module 112 to activate emulation. The emulation module 112, in response, provides the hardware emulation information 122 to the selector 123. In addition, the selector 123 may provide the hardware emulation information to the WDM application 104 in response to the control signal provided by the detection module 110.

The hardware emulation information 122 may emulate the hardware update information 124. For example, the hardware emulation information 122 may include audio stream location information similar to the audio stream location information provided by the hardware update information 124. The hardware emulation information 122 may provide updated audio stream location information that is similar to the audio stream location information that would be provided by the hardware update information 124 if the hardware device 108 was still receiving audio content from the WDM application 104. For example, the emulator 112 may include information associated with the hardware update information, such as pointer location information, as well as the bit depth, sample rate and number of channels associated with the digital audio data stream 118. Based on this information, the emulator 112 may provide emulated pointer information to the WDM application 104 via the hardware emulation information 122. Thus, the WDM application 104 continues to receive hardware update information while the low latency application 102 is providing the digital audio data stream 116 to the hardware device 120. This can improve the stability of the WDM application 104, as well as overall system stability.

The device driver 106 may perform additional functions to provide an appropriate transition between the digital audio data stream 118 and the digital audio data stream 116. For example, in a particular embodiment, the device driver 118 may perform a fade-out operation on the digital audio data stream 118 prior to switching to the digital audio data stream 116. This can reduce undesirable noise artifacts due to the switch in audio data streams. The digital audio data stream 116 can be buffered while the fade-out operation is performed to ensure that data is not lost. In another particular embodiment, the device driver 118 may perform a fade-in operation on the digital audio data stream 116 after switching to that stream. This may also reduce unwanted noise artifacts. In yet another particular embodiment, the parameters of the device driver 106 may be set by a user to control whether the fade-in or fade out operations are performed.

When the low latency application 102 stops providing the digital audio data stream 116, the selection module 114 applies the digital audio data stream 118, instead of the digital audio data stream 116, at the audio output 120. Further, the emulation module 112 stops providing the hardware emulation information 122 to the WDM application 104 and the hardware device 108 then provides hardware update information 124. Because the emulation module 112 has provided the hardware emulation information 122 to the WDM application 104 while the digital audio data stream 116 was being played, the likelihood of a system crash or other system problem resulting from a change in the audio output 120 is reduced.

Referring to FIG. 2, a timing diagram of a series of system signals, such as the signals of the system 100 of FIG. 1, is illustrated. The signals include a WDM application output signal 202, an ASIO audio application output 204, hardware update information signal 206, hardware emulation information signal 208, and audio output 210.

As illustrated, at a first time 212 the WDM application output is activated. This may represent the activation of a digital audio data stream, such as the digital audio data stream 118 of FIG. 1. After application of the WDM application output at time 212, the audio output 210 receives the WDM application audio. In addition, at time 212, the hardware update information signal 206 is activated, as the hardware device that receives the audio output begins providing hardware update information to the WDM application. The WDM application may use this hardware update information to synchronize the digital audio data stream with the hardware device.

At a second time 214, the ASIO audio application output signal 204 is activated. In response the hardware update information signal 206 is deactivated. The hardware update information signal 206 may be deactivated because any information provided by the hardware device will be associated with the low latency application, rather than the WDM application. Accordingly, the WDM application cannot rely on the hardware update information to properly synchronize its digital audio data stream with the hardware device. Therefore, at time 214, the hardware emulation information 208 is activated to so that the WDM application associated with the WDM application output 202 continues to receive hardware update information, thereby improving the stability of the overall system.

After the second time 214, the audio output 210 applies the low latency application audio. At a third time 216 the ASIO audio application output is deactivated. In response, the hardware emulation information signal 208 is deactivated and the hardware update information signal 206 is re-activated. The audio output 210 then resumes providing the WDM application audio. At a fourth time 218, the WDM application output 202 is deactivated and in response the audio output 210 is also deactivated.

Referring to FIG. 3, a method of providing a digital audio signal is illustrated. At step 302, a first audio data stream is detected at a first audio input. The first audio data stream may be received from a low latency application at an audio input to a device driver. Proceeding to step 304, the system switches from a second audio input (e.g. a previously played Windows audio stream) to the first audio input after the first audio data stream has been detected. The system may switch from the second audio input to the first audio input by selectively applying the first audio input at an audio output of the system. In a particular embodiment, prior to switching to the first audio input, a fade-out operation is performed on a second audio data stream provided to the second audio input. In another particular embodiment, a fade-in operation is performed on the first audio data stream after switching to the first audio input. The fade-out and fade-in operations may be performed by a device driver.

Proceeding to step 306, hardware emulation information is provided to an audio source of the second audio data stream provided to the second audio input. By providing the hardware emulation information to the audio source, the overall stability of the system may be improved. For example, many WDM applications require continuous hardware updates to correspond with the application processes. These hardware updates may not be available while the associated hardware is engaged with processing the first audio input. Accordingly, the hardware emulation information can emulate the appropriate hardware updates for the WDM application, improving the stability of the application and the overall system. In a particular embodiment, the hardware emulation information includes information based on a direct memory access (DMA) pointer. In another particular embodiment, the audio stream location information is based on a bit depth, sample rate, or number of data channels associated with the second audio data stream.

Proceeding to step 308, an end of the first audio data stream is detected. This end may be detected by according to a standard framework associated with the device driver 106. Moving to step 310, the audio output is switched from the first audio input to the second audio input after the end of the first audio data stream has been detected.

The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments which fall within the scope of the present disclosure. Thus, to the maximum extent allowed by law, the scope of the present disclosure is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description. 

What is claimed is:
 1. A method, comprising: receiving hardware update information during a first time period; using the hardware update information to synchronize a first audio data stream with a device driver; receiving hardware emulation information during a second time period; and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.
 2. The method of claim 1, further comprising: receiving additional hardware update information during a third time period, the third time period after the second time period.
 3. The method of claim 1, wherein the first audio data stream includes music.
 4. The method of claim 1, wherein the hardware update information includes direct memory access (DMA) pointer information.
 5. The method of claim 4, wherein the DMA pointer information indicates a latest portion of the first audio data stream output by the device driver.
 6. The method of claim 5, wherein a rate at which the DMA pointer information changes is based on a sample rate of the first audio data stream, a bit depth of the first audio data stream, or a combination thereof.
 7. The method of claim 4, wherein the hardware emulation information includes DMA pointer information.
 8. A computer readable storage device storing instructions that when executed by a processor cause the processor to perform operations including: receiving hardware update information during a first time period; using the hardware update information to synchronize a first audio data stream with a device driver; receiving hardware emulation information during a second time period; and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.
 9. The computer readable storage device of claim 8, wherein the operations further include sending the first audio data stream to the device driver during the first time period and during the second time period.
 10. The computer readable storage device of claim 8, wherein the first audio data stream includes audio data from a game application.
 11. The computer readable storage device of claim 8, wherein the hardware update information includes direct memory access (DMA) pointer information.
 12. The computer readable storage device of claim 11, wherein the DMA pointer information indicates a latest portion of the first audio data stream output by the device driver.
 13. The computer readable storage device of claim 12, wherein the hardware emulation information includes emulated DMA pointer information indicating a simulated latest portion of the first audio data stream output by the device driver.
 14. The computer readable storage device of claim 13, wherein the emulated DMA pointer information changes over time.
 15. An apparatus comprising: a processor; and a memory storing instructions executable by the processor to perform operations including: receiving hardware update information during a first time period; using the hardware update information to synchronize a first audio data stream with a device driver; receiving hardware emulation information during a second time period; and using the hardware emulation information to simulate synchronization between the device driver and the first audio data stream.
 16. The apparatus of claim 15, wherein the operations further include receiving additional hardware update information during a third time period, the third time period after the second time period.
 17. The apparatus of claim 15, wherein the first audio data stream corresponds to audio from a game application.
 18. The apparatus of claim 15, wherein the hardware update information includes direct memory access (DMA) pointer information.
 19. The apparatus of claim 18, wherein the DMA pointer information indicates a latest portion of the first audio data stream output by the device driver.
 20. The apparatus of claim 18, wherein the hardware emulation information includes DMA pointer information. 